<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>用户列表</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
    <form action="/edit" method="post">
        <input name="id" type="hidden" th:value="${user.id}"/>
        <div class="form-group">
            <label for="name">Name</label>
            <input type="text" class="form-control" id="name" name="name" th:value="${user.name}" placeholder="name">
        </div>
        性别：<div class="radio">
            <label>
                <input type="radio" name="man" id="optionsRadios1" th:value="1" th:checked="${user.man}">
                男
            </label>
        </div>
        <div class="radio">
            <label>
                <input type="radio" name="man" id="optionsRadios2" th:value="0" th:checked="${!user.man}">
                女
            </label>
        </div>
        <div class="form-group">
            <label for="age">Age</label>
            <input type="text" class="form-control" id="age" name="age" th:value="${user.age}" placeholder="age">
        </div>
        <div class="form-group">
            <label for="phone">Phone</label>
            <input type="text" class="form-control" id="phone" name="phone" th:value="${user.phone}" placeholder="phone">
        </div>
        <button type="submit" class="btn btn-default">Submit</button>
    </form>
</div>
</body>
</html>